<div class="panel panel-primary">
  <div class="panel-heading">NgIf的用法</div>
  <div class="panel-body">
    <p *ngIf='isShow'>内容是否显示</p>
    <button class="btn btn-success" (click)='toggleShow()'>切换显示</button>
  </div>
</div>